from tqdm import tqdm
import time

import time
from tqdm import tqdm

bar = tqdm(['p1','p2','p3','p4','p5'])
for b in bar:
    bar.set_description("处理 {0} 中".format(b))
    time.sleep(0.5)

'''

d = {'loss':0.2,'learn':0.8}
#desc设置名称, ncols设置进度条长度, 
text="...125"
for i in tqdm(range(50), desc= text, postfix=d):
    text=str(i)+"000"
    time.sleep(0.1)

'''

